<?php
include_once '../../../Core/Controlador.php';
include_once '../../../Core/Conexion.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of consulta
 *
 * @author home
 */
class consulta extends Controlador
{
    public function __construct() {
        parent::__construct();
    }
    
    public function ejecutar() 
    {
        $lista=$this->conexion->consultaLibre("select * from alumno where cedularepresentante=".$_REQUEST['condicion']);
        $fila=  mysql_fetch_array($lista);
        
        do
        {
            echo $fila[0].",";            
        }while($fila=  mysql_fetch_array($lista));
        
        
    }    
}

$controlador=new consulta();
$controlador->ejecutar();
?>
